using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN TuanHocServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:08/10/2010 51:08:46</para>
	/// <para>Class Name: TuanHocServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class TuanHocService : ITuanHocService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: TuanHoc_ID</para>
		/// <para>Output: TuanHocEntity</para>
		///</summary>
		public TuanHocEntity SelectOne(int TuanHoc_ID){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.SelectOne(TuanHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: SelectOneByMaTuanHoc</para>
		/// <para>Input: MaTuanHoc</para>
		/// <para>Output: TuanHocEntity</para>
		///</summary>
		public TuanHocEntity SelectOneByMaTuanHoc(string MaTuanHoc){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.SelectOneByMaTuanHoc(MaTuanHoc);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TuanHocEntity</para>
		///</summary>
		public List<TuanHocEntity> SelectAll(){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TuanHocEntity</para>
		///</summary>
		public List<TuanHocEntity> SelectAllFilter(string strFilter){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: Save</para>
		/// <para>Input: TuanHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(TuanHocEntity o){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: Save</para>
		/// <para>Input: TuanHocEntity</para>
		/// <para>Output: TuanHocEntity</para>
		///</summary>
		public TuanHocEntity SaveRet(TuanHocEntity o){
			TuanHocDAO dao = new TuanHocDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of TuanHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<TuanHocEntity> list){
			TuanHocDAO dao = new TuanHocDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of TuanHocEntity</para>
		/// <para>Output: List of TuanHocEntity</para>
		///</summary>
		public List<TuanHocEntity> SaveListRet(List<TuanHocEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: Update</para>
		/// <para>Input: TuanHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(TuanHocEntity o){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of TuanHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<TuanHocEntity> list){
			TuanHocDAO dao = new TuanHocDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: UpdateMaTuanHoc</para>
		/// <para>Input: NewMaTuanHoc,TuanHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaTuanHoc(string NewMaTuanHoc,int TuanHoc_ID){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.UpdateMaTuanHoc(NewMaTuanHoc,TuanHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: UpdateTenTuanHoc</para>
		/// <para>Input: NewTenTuanHoc,TuanHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenTuanHoc(string NewTenTuanHoc,int TuanHoc_ID){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.UpdateTenTuanHoc(NewTenTuanHoc,TuanHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: UpdateThuTu</para>
		/// <para>Input: NewThuTu,TuanHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateThuTu(int NewThuTu,int TuanHoc_ID){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.UpdateThuTu(NewThuTu,TuanHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,TuanHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int TuanHoc_ID){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.UpdateGhiChu(NewGhiChu,TuanHoc_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: Delete</para>
		/// <para>Input: TuanHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(TuanHocEntity o){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 51:08:46</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: TuanHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int TuanHoc_ID){
			TuanHocDAO dao = new TuanHocDAO();
			return dao.DeleteByID(TuanHoc_ID);
		}
		#endregion

		#region Select,delete by TuanHoc_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END TuanHocWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

